export default {
  namespaced: true,
  state: {
    title: "shop",
  },
  getters: {
    getTitle: (state, getters, rootState) =>
      state.title + rootState.title + "!!",
  },
  mutations: {
    SET_TITLE: (state, value) => (state.title = value),
  },
  actions: {
    say(store) {
      console.log(
        store.state.title,
        store.rootState.title,
        store.rootGetters.getTitle
      );

      console.log(
        store.rootState.info.admin.title,
        store.rootGetters["info/admin/getTitle"]
      );
    },
  },
};
